.screen-grid {
  display: grid;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.grid-3x2 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    "a b c"
    "d e f";
}

.grid-2x3 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas:
    "a b"
    "c d"
    "e f";
}

.grid-4x2 {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    "a b c d"
    "e f g h";
  gap: 20px;
}

.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    "a b"
    "c d";
  gap: 20px;
}

.grid-performance {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "a c"
    "b c";
  gap: 20px;
}

.grid-inventory {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "a a"
    "b c";
  gap: 20px;
}

.grid-cost {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "b c"
    "a a";
  gap: 20px;
}

.kpi-section {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
  flex-shrink: 0;
}

.kpi-section > * {
  flex: 1;
  min-width: 0;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(90deg, #1890ff, #36cfc9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: #36cfc9;
}

.data-stream {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

.stream-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(24, 144, 255, 0.1);
  border-left: 3px solid #1890ff;
  border-radius: 4px;
}

.stream-time {
  font-size: 12px;
  color: #999;
  margin-right: 10px;
}

.stream-text {
  flex: 1;
  color: #fff;
}

.stream-value {
  color: #36cfc9;
  font-weight: bold;
}

.kpi-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  height: 100%;
  justify-content: center;
}

.kpi-item {
  text-align: center;
  padding: 15px;
  background: rgba(24, 144, 255, 0.05);
  border-radius: 8px;
}

.kpi-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.kpi-value {
  font-size: 36px;
  font-weight: bold;
  color: #1890ff;
  margin-bottom: 5px;
}

.kpi-change {
  font-size: 14px;
}

.kpi-change.positive {
  color: #52c41a;
}

.kpi-change.negative {
  color: #ff4d4f;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(24, 144, 255, 0.1);
  border-radius: 4px;
}

.order-id {
  color: #36cfc9;
  font-weight: 500;
}

.order-amount {
  color: #1890ff;
  font-weight: bold;
}

.order-status {
  color: #52c41a;
  font-size: 12px;
}

.realtime-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px;
  height: 100%;
  justify-content: center;
}

.realtime-item {
  text-align: center;
}

.realtime-label {
  font-size: 16px;
  color: #999;
  margin-bottom: 15px;
}

.realtime-value {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(90deg, #1890ff, #36cfc9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.region-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
}

.region-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.region-name {
  width: 60px;
  color: #fff;
  font-size: 14px;
}

.region-bar {
  flex: 1;
  height: 20px;
  background: rgba(24, 144, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.region-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1890ff, #36cfc9);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.region-value {
  width: 80px;
  text-align: right;
  color: #36cfc9;
  font-weight: bold;
}
